<template>
    <div class="doctorreviewreview">
        <ChatWithDetail :serviceId="this.$route.query.serviceId" :handleBack="reback" :numtype = '1' :servertype="servertype" ></ChatWithDetail>
    </div>
</template>
<script>
import api from "@/api/commonApi";
import ChatWithDetail from "../../components/menzhenDetail/chatWithDetail";
export default {
    components: {
        ChatWithDetail
    },
    data() {
        return {
            id: null,
            info: {
            },
            timelang:'',
            histNo:0,
            pageNo: 0,
            pageSize: 10,
            casePic: [{ fileName: require("@/assets/images/weixiaobao.jpg") }],
            showViewModal: false,
            modalSrc: "",
            servertype: "",
            searchKey: "",
            startDate: "",
            endDate: "",
            status: null,
            province: null,
            city: null,
            area: null,
            hospital: null,
            isBack: 2,
            historyMsgList: [],
        };
    },
    created() {
        this.id = parseInt(this.$route.query.serviceId);
        this.pageNo = this.$route.query.pageNo
            ? parseInt(this.$route.query.pageNo)
            : 1;
        this.searchKey = this.$route.query.searchKey
            ? this.$route.query.searchKey
            : "";
        this.startDate = this.$route.query.startDate
            ? this.$route.query.startDate
            : "";
        this.endDate = this.$route.query.endDate
            ? this.$route.query.endDate
            : "";
        this.status =
            this.$route.query.status == null
                ? null
                : parseInt(this.$route.query.status);
        this.province = this.$route.query.province
            ? parseInt(this.$route.query.province)
            : null;
        this.city = this.$route.query.city
            ? parseInt(this.$route.query.city)
            : null;
        this.area = this.$route.query.area
            ? parseInt(this.$route.query.area)
            : null;
        this.hospital = this.$route.query.hospital
            ? this.$route.query.hospital
            : null;
        this.servertype = this.$route.query.servertype;
        let breadList = [
            { path: "/index", title: "首页" },
            {
                path: "/index/operation/ordersmanagement/index",
                title: "订单管理"
            },
             {
                path: "/index/operation/orders/consultingorder/list",
                title: "咨询问诊订单"
            }
        ];
    },
    methods: {
        reback(){
            //   公用方法
            this.functionJS.queryNavgationTo(
                this,"/index/operation/orders/consultation/list",
                {
                    pageNo: this.pageNo,
                    searchKey: this.searchKey,
                    startDate: this.startDate,
                    endDate: this.endDate,
                    hospital: this.hospital
                }
            );
        }
    }
};
</script>
<style lang="less" scoped>
.doctorreviewreview {
    // margin-left: 1%;
    // padding: 10px 20px 10px 0; 
    // width: 98%;
    // background: #ffffff;
    // box-sizing: border-box;
}
</style>
